package com.ttbj.controller.work;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestParam;

import com.ttbj.product.bean.dto.PageGlobal;
import com.ttbj.product.bean.dto.ViewData;

public interface WorkController {
	
	/**
	 * 业务员查询工单列表查询所有订单
	 * @param token
	 * @return 
	 * @throws Exception 
	 */
	ViewData getWorkOrderAll(HttpServletRequest request,String token) throws Exception;
	
	
	
	/**
	 * 根据是否已完成带有分页的工单列表
	 * @param request
	 * @param token
	 * @param isCompl
	 * 			0 已完成  1未完成
	 * @param page
	 * @return
	 */
	ViewData getWorkList(HttpServletRequest request,String token,Integer isCompl,PageGlobal page);
	
	/**
	 * 获取订单详情
	 * 业务员查询工单详情
	 * @param request
	 * @param token
	 * @param orderId
	 * @return 订单信息
	 * @throws Exception
	 */
	ViewData getWorkOrderDetail(HttpServletRequest request, String token, Long orderId) throws Exception ;

	 /**
	  * 业务员上门确认后，未缴费
	  * 再次调用此接口缴费
	 * @throws Exception 
	  * 
	  */
	ViewData payTransf(HttpServletRequest request,String token, Long orderId,Long workId) throws Exception;
	
	
	/**
	 * 获取订单二维码接口
	 */
	ViewData getOrderQR(HttpServletRequest request, String token, Long orderId) throws Exception ;

}
